// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import {GetQtController} from "./qtWebBridge/QtUtils";
import ProjectQtController from "./ProjectQtController";
import axios from 'axios'
import {CODE_SUCCESS} from "./qtWebBridge/QtBaseController";

Vue.config.productionTip = false
Vue.prototype.axios = axios

/* eslint-disable no-new */
new ProjectQtController('Collection','Channel', axios,function (code,msg) {
  if(code == CODE_SUCCESS) {
    new Vue({
      el: '#app',
      router,
      components: { App },
      template: '<App/>'
    })
  }else {
    GetQtController().onInitError(code,msg);
  }
});


